import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'

//引入socket.io
import VueSocketio from 'vue-socket.io';
Vue.use(VueSocketio, 'http://localhost:3000?roomid=1');

//引入ElementUI组件库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 实例化ElementUI
Vue.use(ElementUI);

//  引入highchars库
import VueHighcharts from 'vue-highcharts';
Vue.use(VueHighcharts);


if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    components: {
        App
    },
    router,
    template: '<App/>'
}).$mount('#app')